﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PlayGame.aspx.cs" Inherits="FlashGameSite.FormPlayGame" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <div class="block">
            <div class="block-bot">
                <div class="head">
                    <div class="head-cnt">
                        <h3 runat="server" id="htitle"></h3>
                        <div class="cl">
                        </div>
                        <a href="PlayGame.aspx" runat="server" id="lnkFullScreen" target="_blank" style="float: right;">Full Screen</a>
                        <asp:UpdatePanel ID="pnlUpdateLikes" runat="server" UpdateMode="Always">
                            <ContentTemplate>
                                <asp:LinkButton runat="server" ID="lnkFavourite" Text="Add To Favourite" Style="float: left;" OnClick="lnkFavourite_Click"></asp:LinkButton>
                                <asp:LinkButton runat="server" ID="lnkLike" Text="" Style="float: left; margin-left: 10px;" OnClick="lnkLike_Click"></asp:LinkButton>
                            </ContentTemplate>
                        </asp:UpdatePanel>

                    </div>
                </div>
                <div class="col-articles articles" id="loadSwf" runat="server">
                </div>
                <br />
                <asp:UpdatePanel ID="pnlUpdateComment" style="margin: 10px;" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <div style="width: 560px;" id="divAddComment" runat="server">
                            <h3>Enter your comments:</h3>
                            <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" Width="450px" Height="70px"></asp:TextBox>
                            <asp:Button ID="btnSubmit" runat="server" CssClass="btncls" Style="float: right; cursor: pointer;" Text="Submit" OnClick="btnSubmit_Click" />
                        </div>
                        <br />
                        <div>
                            <asp:DataList ID="GridComments" Width="100%" runat="server" RepeatDirection="Vertical">
                                <ItemTemplate>
                                    <div style="margin-bottom:5px;">
                                        <span><%# DataBinder.Eval(Container.DataItem, "CommentText")%></span>
                                        <br />
                                        <strong style="float: right;">By <%# DataBinder.Eval(Container.DataItem, "Username")%></strong>
                                        <br />
                                        <hr />
                                    </div>
                                </ItemTemplate>
                            </asp:DataList>
                        </div>
                        <br />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>

        </div>

    </div>
</asp:Content>
